home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10171 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.6 KB  |  61 lines

  1. Path: inforamp.net!ts26-11
  2. From: rmorin@inforamp.net (Randy Charles Morin)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: hungarian syntax
  5. Date: Wed, 06 Mar 96 07:15:58 GMT
  6. Organization: MiddleWorld SoftWare
  7. Message-ID: <4hje35$elu@sam.inforamp.net>
  8. References: <4hid64$h4k@aldebaran.sct.fr>
  9. NNTP-Posting-Host: ts26-11.tor.inforamp.net
  10. X-Newsreader: News Xpress Version 1.0 Beta #4
  11.  
  12. In article <4hid64$h4k@aldebaran.sct.fr>,
  13.    escali_m@worldnet.net (Marc Escalier) wrote:
  14. >Hello, i'm looking for information about the hungarian syntax in c and
  15. >c++
  16.  
  17. I haven't found any good books that adequately describe it, but I'll give you 
  18. a run over.  All your identifier have prefixes that describe their types.  
  19. Thus a character would have the prefix c.
  20.  
  21. Examples:
  22. char cUIExempt;
  23. char cMaritalStatus;
  24. char * szName;
  25. int  iAge;
  26.  
  27. This way you know a type even when the identifiers definition is hidden in 
  28. hundreds of lines of spaghetti.
  29.  
  30. Agrivar
  31.  
  32. PS Here's a list of hungarian prefixes that I picked up one time.
  33.  
  34. a    Atom
  35. b    BOOL (integer)
  36. by    BYTE (unsigned character)
  37. c    Character (ANSI ASCII 8-bit)
  38. dw    DWORD (unsigned long)
  39. fn    Function
  40. h    HANDLE (unsigned integer)
  41. i    Integer
  42. id    Integral id value
  43. l    LONG (long)
  44. lp    Long (far) pointer
  45. lpsz    Long pointer to null-terminated string
  46. n    Short integer
  47. np    Near (short) pointer
  48. p    Pointer
  49. pfn    Function pointer
  50. pst    Pointer to a structure
  51. psz    Pointer to null-terminated string
  52. pv    Pointer to void
  53. s    String
  54. sz    NULL (/0) terminated string
  55. u    Unsigned
  56. v    Void
  57. w    WORD (unsigned integer)
  58. w    Character (Unicode 16-bit)
  59. x    Short (when used as the x coordinate)
  60. y    Short (when used as the y coordinate)
  61.